<template>
  <div class="tops">
    <div class="w90 main-top">
      <div class="fl">
        <img src="../../../static/images/logo.png" alt>
      </div>
      <div class="fr main-top-ri">
        账号：管理员
        <span @click="getData()">退出账号</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "topBar",
  methods: {
    getData() {
      localStorage.removeItem("loginFlag");
      this.$router.push("/");
    }
  }
};
</script>

<style lang="less">
.w90 {
  width: 900px;
  margin: 0 auto;
}
.tops {
  background: #fff;
}
.main-top {
  height: 100px;
  line-height: 100px;
}
.main-top-ri {
  color: #333333;
  font-size: 18px;
  span {
    font-size: 14px;
    margin-left: 25px;
    color: #fb8200;
    cursor: pointer;
  }
}
.property-mask {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 260px;
  margin-left: -180px;
  margin-top: -130px;
  border-radius: 5px;
  background: #fff;
  .property-mask-top {
    color: #303133;
    font-size: 18px;
    text-align: center;
    margin: 30px 0;
  }
  .property-mask-input {
    text-align: center;
    .el-input {
      width: 300px;
      height: 40px;
      text-align: center;
    }
    margin-bottom: 15px;
  }
  .property-mask-btn {
    font-size: 12px;
    margin-top: 30px;
    div {
      width: 74px;
      height: 28px;
      border: 1px solid #f4f4f3;
      text-align: center;
      line-height: 28px;
      border-radius: 5px;
      cursor: pointer;
      &:nth-child(1) {
        margin: 0 68px;
        color: #5a5e66;
      }
      &:nth-child(2) {
        color: #fff;
        background: #fc8f00;
      }
    }
  }
  .property-content{
    padding: 0 20px;
    textarea{
      resize: none;
      height: 100px!important;
    }
  }
}
</style>

